<?php
	$currentItem = "NewsAdmin";
?>
<include file="./Tpl/default/Admin/Public/header.html" />
<include file="./Tpl/default/Admin/Public/sidebar.html" />

<!--ThinkPHP Ajax-->
<load href="../Public/Js/Base.js" />
<load href="../Public/Js/prototype.js" />
<load href="../Public/Js/mootools.js" />
<load href="../Public/Js/Ajax/ThinkAjax.js" />


<!--ThinkPHP Ajax-->
<script language="JavaScript">

	//Ajax添加新闻
	function deleteCommit(){
		ThinkAjax.sendForm('NewsForm','__APP__/Admin/NewsAdmin/deleteCommit',complete,'result');
	}
	
	//添加新闻成功后的回调事件
	function complete(data,status){
		if (status==1)
		{
			// 更新列表
			htmlstring = '删除成功！ ';
			alert(htmlstring);
			window.location.href = "__APP__/Admin/NewsAdmin/";
		}
	}
	
 </script>

<div>
	<h2>确认删除该新闻？</h2>
	
	<br>
	
	<form id="NewsForm" method="post">
		<div id="result" style="font-family:微软雅黑,Tahoma;letter-spacing:2px">
		</div>
		<ul>
			<li>
				<input type="hidden" value="<?php echo $news_id?>" name="news_id">	
				<input type="hidden" name="ajax" value="1">
				<input type="button" onClick="deleteCommit()" value="确认删除">
				<a href="__APP__/Admin/NewsAdmin/">取消删除，返回！</a>
			</li>
		</ul>

	</form>

</div>

<include file="./Tpl/default/Admin/Public/footer.html" />


